<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="/MyFristJavaWebProject/RequestEncodedServlet?username=二狗子&yyy=YYY">get请求</a>
<form action="/MyFristJavaWebProject/RequestEncodedServlet" method="post">
    用户名：<input type="text" name="username"><br>
    密码：<input type="password" name="password"><br>
    爱好:<input type="checkbox" name="hobby" value="吃饭">吃饭
    <input type="checkbox" name="hobby" value="睡觉">睡觉
    <input type="checkbox" name="hobby" value="打代码">打代码
    <br/>
    <input type="submit" value="提交">

</form>
</body>
</html>